/**
 * 维保方案管理
 */
import request from '@/utils/request'
import { kfApiUrl } from '../config'

/**
 * @description 分页查询
 * @param {type} data 
 */
 export function getMaintenancePlanList(data) {
  return request({
    url: `${kfApiUrl}/customerMaintenancePlan/getPageCustomerMaintenancePlan`,
    method: 'post',
    data
  })
}

/**
 * @description 修改维保方案管理
 * @param {type} data 
 */
 export function editMaintenancePlan(data) {
  return request({
    url: `${kfApiUrl}/customerMaintenancePlan/updateByPrimaryKeySelective`,
    method: 'post',
    data
  })
}

/**
 * @description 删除维保方案管理
 * @param {type} params 
 */
 export function delMaintenancePlan(params) {
  return request({
    url: `${kfApiUrl}/customerMaintenancePlan/deleteByPrimaryKey`,
    method: 'get',
    params
  })
}


/**
 * @description 获取维保方案管理信息
 * @param {type} params 
 */
 export function getMaintenancePlanDetial(params) {
  return request({
    url: `${kfApiUrl}/customerMaintenancePlan/getCustomerMaintenancePlanById`,
    method: 'get',
    params
  })
}
